﻿@model LoginModel

@{
    ViewBag.Title = Resources.Login.Title;
    string twoLettersCulture = new System.Globalization.CultureInfo(Culture).TwoLetterISOLanguageName;	
}
<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <h2>@Resources.Login.EnterUserAndPassword</h2>
</hgroup>

@Html.ValidationSummary(true, Resources.Login.ValidationSummary)

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>@Resources.Login.AccountInformation</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="@Resources.Login.SubmitLogin" />
            </p>
        </fieldset>
    </div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script src="@Url.Content("~/Scripts/cultures/methods_" + twoLettersCulture + ".js")" type="text/javascript"></script>
}